package com.example.demo.service.exam;

import com.example.demo.domain.exam.ExamSubmitLog;
import com.example.demo.dto.LatestSubmissionResultDto;

import java.util.List;

public interface ExamSubmitLogService {

    void insert(ExamSubmitLog submitLog);

    List<ExamSubmitLog> getSubmitLogByExamId(Long examId);

    ExamSubmitLog getSubmitLogBySubmissionId(Long submissionId);

    void update(ExamSubmitLog entity);

    List<LatestSubmissionResultDto> getQuestionSubmitLog(Long questionID, Long examId);

    void deleteByExamUserId(Long examId, Long userId);

}
